From: Florian Eckert Date: Fri, 13 Nov 2020 14:49:01 +0000 (+0100) Subject: luci-base: show default forwarding target in general firewall settings X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=5b706f52d77dfe6932f6677576774f4ae32f6090;p=project%2Fluci.git luci-base: show default forwarding target in general firewall settings Signed-off-by: Florian Eckert --- diff --git a/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js b/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js index d946d0e093..0ba07afcde 100644 --- a/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js +++ b/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js @@ -322,6 +322,9 @@ var CBIZoneForwards = form.DummyValue.extend({ if (!dzones.length) dzones.push(E('label', { 'class': 'zonebadge zonebadge-empty' }, E('strong', this.defaults.getForward()))); + else + dzones.push(E('label', { 'class': 'zonebadge zonebadge-empty' }, + E('strong', '%s %s'.format(this.defaults.getForward(), ('all others'))))); return E('div', { 'class': 'zone-forwards' }, [ E('div', { 'class': 'zone-src' }, this.renderZone(zone)),